var express = require('express');
var router = express.Router();

var dataContrl = require('../controller/cate.controller');
/* GET users listing. */

router.post('/data',dataContrl.create);//增加
router.get('/data/:id',dataContrl.get);//查找一个
router.put('/data/:id',dataContrl.update);//修改
router.delete('/data/:id',dataContrl.remove);//单个删除
router.post('/id/:id',dataContrl.getid);//获取id
router.post('/list/:type',dataContrl.list);//获取


module.exports = router;
